Repository navigation
Fix cross-device link error when updating lazygit (#3494) - #6250
isFakeAccount wants to merge 1 commit into
Conversation
…evice link - Fixes the invalid cross-device link caused when copying files to different disk on Linux. - Instead of extracting lazygit to current directory, everything is now done in tmpdir - On top of that, there is a fallback which copies the file and then renames the file in case the executable location and the tmp dir are on different disks
|
This is not nearly enough to fix all the problems that the update code currently has. I'm rewriting it from scratch, and it will include a fix for this issue. |
|
If you are gonna rewrite it can you make it follow the XDG base dir specification? Install the binary in the Also how much longer the rewrite will take? |
I don't understand the question. Lazygit doesn't decide where the install goes; it always installs over the running binary, wherever it is, as long as you have write permissions there. But yes, the readme will recommend
It will be included in the next release. |
|
BTW, where does the |
PR Description
Please check if the PR fulfills these requirements
go generate ./...)